package com.tj.collection.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.tj.collection.db.dao.ChatterConfigDao;
import com.tj.collection.db.entity.ChatterConfigEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* User: linqu
* Date: 2023-11-14
* Time: 14:54:04.347
*/

@Repository
public class ChatterConfigDaoImpl extends AbstractBaseMapper<ChatterConfigEntity> implements ChatterConfigDao {

    @Override
    public List<ChatterConfigEntity> listChatterConfigs(String chatterCode) {
        return this.getSqlSession().selectList(this.getStatement("listChatterConfigs"), chatterCode);
    }

    @Override
    public List<ChatterConfigEntity> listAllChatterConfigs() {
        return this.getSqlSession().selectList(this.getStatement("listAllChatterConfigs"));
    }

    @Override
    public void updateChatterConfig(String chatterCode) {
        this.getSqlSession().update(this.getStatement("updateChatterConfig"), chatterCode);
    }
}